-- GENERATED SPELL FOR [Ghost Saber] --


function spell0_3619(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16829,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3619', 642, 1)
end

function spell1_3619(pUnit, Event) --@Prowl,Self--
pUnit:FullCastSpellOnTarget(24450,pUnit)
pUnit:RegisterEvent('Sorts_3619', 0, 1)
end

function Sorts_3619(pUnit, Event)
local choix_sorts_3619 = math.random(0, 1)
if choix_sorts_3619 == 0 then
pUnit:RegisterEvent('spell0_3619', 1, 1)
end
if choix_sorts_3619 == 1 then
pUnit:RegisterEvent('spell1_3619', 1, 1)
end
end

function mob3619_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3619', math.random(1500, 3000), 1)
end

function mob3619_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3619_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3619_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3619, 1, 'mob3619_Action')
RegisterUnitEvent(3619, 2, 'mob3619_Leave')
RegisterUnitEvent(3619, 3, 'mob3619_Kill')
RegisterUnitEvent(3619, 4, 'mob3619_Die')
